﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Media3D;
using System.Xml;
using System.Globalization;

namespace SkeletalAnimation3D.Core
{
	public class BoneFrame
	{
        private double _offset;

        public double Offset
        {
            get { return _offset; }
            set { _offset = value; }
        }
        private BoneOrientationDictionary _boneOrientations = new BoneOrientationDictionary();

        public BoneOrientationDictionary BoneOrientations
        {
            get { return _boneOrientations; }
            set { _boneOrientations = value; }
        }

        internal void CopySkeletonOrientation(SkeletonInfo target)
        {
            foreach (BoneOrientation boneOrientation in _boneOrientations)
            {
                target.SetOrientation(boneOrientation.BoneId, boneOrientation.Orientation);
            }
        }
    }
}
